Added login logout stuff