Added form field client-side validation