validation error in snake