login/logout now working