changing to custom error msgs