Added HTML5 validations and switched to email field on login/reg/res form.
Refactored log in, reset, registration.