Added client side validation for posting