revises sessions login and logout