Fixed validation of select required attribute