add status fuction for login status check