changed flash[:error], to flash[:danger]