Move user validations to validateEntity. Improve docs.