Adding onSiteLoginFailure and onGlobalLoginFailuer events