creating validation for numericality