Fixed errors with saving login status