Small change with respect to login/logout after having closed the browser