Synchronized error messages with native php error messages