Create validator functions for Waterline model definition