added validation for events and users