Added turn login and logout