check if device is encrypted before launching the application