Added ability to log in