login and status check fixed