Implemented handling of user logging in.
Changed routing to login.