Add HTML5 form validation to login.