add sum stuff for the login page and logout