Add support for login.