validation works but db storage doesnt
adding javascript inclusion to bottom to speed up load