completed the login capability