Added login and logout script
Added login and logout script