Added isValidUsername method