get rid of action_login function