Delegate methods for login and signup.