log in when pressing enter and go to user when clicking on log