cleanup structure and start login/registration