completes login/logout button