Authenticating one time when the app is opened.