expose validate functions
documentation for error handling and validations