Adding logic to return a user to the login page after unsiccessful registration of a pre-existing account