added email config and formatting after adding devise.