Prettified login form
Fixed bug in login process

* Requesting code verification after code has been timed out resulted in an
  error on the server.