added messaging and codes to Utils, trimmed trailing slash from base_url for emails