OPEN-562: Adding the required class to the container div if input is required.