Rewrite php register error messages