added validation for numbers