we included the error commands and the new method to redsiplay the information if the validations fail