app setup and login