updated to use Rails 4.1 strings in flash hash