Add client side form validation to user edit and login.