Check to see if error is anything

If error is not set die so that apache does not throw an error just by
loading the login page