Fixed logging out defect, so session is now correctly cleared