infrastructure setup, login and register process