good refactor, joinEvent and registerUser - don't work