fixed authenticationTrials bug, app only in portrait