adding client side validation to user form