Fixed a bug that wouldnt save the user edit after logging out.