border color change to red when there is an error