fix onLoginNeedAuthentication now works