make it so main app and login app can be same or different