fix: Incorrectly checking whether registration is allowed in the login interface, resulting in the inability to log in through apiv1