refatoring deleting profile model, setting host in config session so we can get rid of the hardcode host in emails