Added server side validation.
Enabled client side validation.