changed to while loop and added 12 character rule