please put the validate statements above the constants