Update MY_Model

fixed so validation works with native php functions.