handles err 401 and alerts user, clear out form when user is deleted or edit