Wired JS to form to check database