public function create_user($values, $expected) { // Validation for passwords $extra_validation = Model_User::get_password_validation($values) ->rule('password', 'not_empty'); return $this->values($values, $expected)->create($extra_validation); }