added client-side validation for registration form and jquery files