cleanup login process