Renamed irms_helper to pts_helper
Refactored get_errors in pts_helper to get_messages