change the function to isValidName maybe?