reformatted lib/waterline/core/validations.js for consistency