adjusted login logout for pages