Cannot create username

Hi there, can someone please help. I’ve using the Harry Potter coding kit on a Mac. I just downloaded the app and its asked me to create a username - however whatever I enter is says ‘the username is invalid’ but with no clues why. Te generated usernames seem to work but I don’t want to use one of those.