added form validation on client side