Require login and add profile_type to login