Update admin.php

After calling the dispatcher errors must be checked from the dispatcher rather than from the table.