Fixed error messages to the correct format