Rails3 compatibility: replace validate_on_create