Login and logout are now working properly.