Fix some bugs in the login system caused by SEO