client side validations working