Added events for cookie autologin