public function login($username, $password)
		{

			// Get result
			$result = $this->validate($username, $password);

			// Success?
			$this->_result = $result;
			if ($result->success) {

				// Store it in the session
				$storeObject = array(
					'username' => $username,
					'password' => $result->user->readAttribute($this->_passwordField)
				);
				$_SESSION[self::$_sessionPrefix . $this->name] = $storeObject;

				// Store local vars
				$this->_authenticated = true;
				$this->_user = $result->user;

				// Save last login
				$llField = $this->_lastloginField;
				$this->user->$llField = new \ActiveRecord\DateTime();
				$this->user->save();

			

			}

			// Done.
			return $result;
			
		}