Fix error flash message
its no longer "error" but alert or warning that has to be used