Change login logic (iOS)