Validator implementation on client side