this is hell
Working transition from login to main