Make sure LTID is set to NULL if blank, not an empty string
Make sure form is only submitted once
Improve error messages and make alerts more visible