Fixed error messages for leader registration