update the limited for login and logout