Redirect to loginpage after registration