repair authentication and disconnect