client side validation

client side validation