returning success status from email util
added error_msg to header template