validation with attribute_accessor

There's no reason it should do that that I can think of. Which version
of Rails are you using?

Perhaps you're running in production mode and you forgot to reset your
webserver after you've changed your model?