Added restriction to input & fixed multiple combo boxes

Added restriction to input & fixed multiple combo boxes