updated flask security