Ensured we don't try to save to a null user and that we do save on a log out.