Invitation failure

Part 2 of my previous pull request, which resolved an unrelated issue.

Replaces the login form with a link to the home page. The addition of an action to the login form isn't strictly necessary, but it doesn't hurt anything.