Make getting login codes not suck

Now it'll submit the form via ajax and give some
decent feedback about the process.

Also it won't send a login code when you hit
enter.