Fix login_needed. #6