checking for is object before using PDO fetch()
removing login screen dialog