complete login and signout with sessions and cookies 2