How can I change a required field from displaying an error message to highlighting it in red?