Stop double clicking causing an error on the login form

https://www.pivotaltracker.com/story/show/54077933