New log-in log out  functionality