Support different types of login requests.