added status codes into validation messages