Refactoring validations and scopes to use new Rails syntax