fixed logged out and back problem