Fixed order.php to use exception
Changed login to use exception and not return value