added login functionality to users