Added login/logout redirection