minor update to update_credentials