Refactor authentication. Update EnterPinActivity.