How can I change the field border colour to red if required and not entered?