Add required class at form input field