now putting required class on label tag and surrounding div tag