extension methods for active_model/errors