try-except inside validate