added successcodes for editUser function and added createEvent