fixed logged out issue