Fixed lost autologin after file operations when credentials were changed