add rescue and flash[:error] fot emails