In order to be able to change styles in case of an error, it would be convenient to have a variable to handle this state such as 