add authentication upon createEvent. not sure redirection works yet.
Merge from master