for validating tips