onResume asking for PIN

With these changes onResume no longer asks for the PIN every time after the first intent.