client side validation added to client model

client side  validation is added to client model