Init login and register