Hi Chethan,
You can retrieve the current application URL using the GetApplicationUrl java action in the community commons module. All you need to do is add the path to the login page to it and change the text attribute to the combined url.
Edit:
You can change the attribute in a change object action, just make sure you set “Refresh in client” to “Yes”