Fixed sign out bug on save