Configured the login mechanism