Add server-side and HTML5 form validation of login.