After successful login, responde with a user object instead of redirecting to home page.