Moved Event::fire to start of logout function. Need to validate if execution is asynchronous.
Added Event::fire for registration