Checking for Errors and displaying information about errors if any