Added login and logout. pic not yet working. session vars added