some changes
complete login and signout with sessions and cookies