login: handle 401 error

Adds template and special handling of 401 error.

As mentioned in #2316 the template was "wonky" when authorization fails. Here is a better one:

![Better](http://dl.dropbox.com/u/19162117/Selection_008.png)