added validation for number, max and min