Added a check for username containing only letters, numbers, dashes,
underscores