Using PHP5.
Updated error messages and actually show them.