updated authenticate_user added login_success