password protected private events/ refactoring