Added some validations to users and events