cleanup login etc