status in logan

added the status code to logan.php