select lt.user_id from login_tb lt join register_tb rt on lt.user_id=rt.user_id group by lt.user_id having count(*)>=3;