Updated  cutom errors bloack