Login and logout now works