Change the border color and background in case of error