added check to make sure name is greater than two characters