Adds redirection to the login page after registering a new profile