Validate length input

Validate length input using while loop