Hm... yes... This is just how you implemented it, did not verify if it works. What I add here is just a bit more formatting of the error message.