finshed save current user

save current user to a file and recover when next time starting the app.