added validations for length of code
lettuce to add length of code on upload location