loginAndRegister