Validation on the client side.