if re.match("^[\w\d]*$", username):
username = models.CharField(_('username'), max_length=30, unique=True, validators=[ validators.RegexValidator(r'^[\w\d]*$', _('Enter a valid username.')) ])