fix for rails 3 uniqueness validator