You could also replace '@ + /' with '' and change the corresponding language file for: users/handle_has_bad . That way the error could be 'Username can only contain characters from A to Z and numbers'.