Fix login form

Require that both fields are filed in and use HTML5 instead of JS.