implemented a limit to the name entered