added the ability to log in