Fix -registerApp: method to not loose auth credentials