Set attribute as required