included validations on client side