saving logged user fix