change check_login method and add redirect to add-topic.php after login