html5 login form client-side validation