added ability for users to login