fixed adding the 'required' property, all other validations are added using attr() yet required needs to be added using prop()