Programmatically check whether the user is already signed in to the application