Added user login, logout doesnt work