Checking if account name is valid.