update return status for error and email format