Fixed bugs and crashes caused by rotation during the splash screen.

Fixed crash caused by Login and Registration when exception was thrown.
Prevented possible crash during Registration.