add ability to specify a custom function for max-level validation
Merge pull request #28 from dimagi/custom-max-level

add ability to specify a custom function for max-level validation