#1259 showing flash error message if something is wrong with the user