added template support for user login/logout