Added log page and add to log when logging out.