Everything works just need to flash error message