Corrected null error in logout. Made sure unit tests ran.