Implemented client side input validation

Implemented client side input validation