fixed unknown db exception and session errors while opening pages from url. Now message is displayed