Screen Orientation Crash fix

App was crashing when Switching orientation while loading login screen