Add an error message if an alias is detected as invalid