fix refreshuser not updating the user correctly