Fix bug: Now, users can't get register_page and login_page when logged in