created the controllers for Users and Events