Create loginAction for AuthController