flash error messages are being shown now