removed including wp-load.php.Used admin-ajax.php instead of it