Sets `required` validation error key if the value is not entered.