fixing number validation