new code validation