public static function validate($request_data = array(), $token_name = self::TOKEN_NAME)
	{
		if (empty($_SESSION[$token_name])) {
			static::generateToken($token_name);
			return false;
		} elseif (empty($request_data[$token_name])) {
			return false;
		} else {
			if(static::compare($request_data[$token_name], static::getToken($token_name))){
				static::generateToken($token_name);
				return true;
			} else {
				return false;
			}
		}
	}