*Pass 'event' object by parameter to 'userPreflight' service.

*event is not a global object in FF, so when and user was not logged in and he tried to access the 'event' was not defined. Passing this as a parameter
solve the problem.