Hi Anand,
I just wanted to add other consideration :
You'll find tips about some customization to be put in
the smpwservices.fcc :
https://docops.ca.com/ca-single-sign-on-12-52-sp1/en/configuring/web-agent-configuration/
agents-and-password-services
You might also rely on best practices about document.write methods.
There are many website on internet that discuss this too. This will give
you guide lines.
Consider to run the latest version of Web Agent with the latest out of the box
smpwservices.fcc, only to modify the lines that shows text, images and logo. Modify
as less as possible the other functions in order to preserve the out of the box security
of the smpwservice.fcc.
Hope that helps,
Patrick