Performs code validation functionality