* minor refactoring
* fix a bug when submitting login form by clicking button
handle errors for ajax logins by resetting the kickedOff state
add a comment