GNR-9 added logout process
GNR-9 added static login page and optimized extended code