Add two event onUserLogin and onUserLogout for authentication