Changed message boxes to error messages boxes