Created preliminary errordialog and registry error check