rescue ActiveRecord::RecordInvalid error