Fixed broken Sign Out logic