Added Error statement to error messages.