Register and Login for non-logged in user