refactoring the user prototype and starting with Event prototype