pass allowRegistration in login API for #1786