added ability to login