Poly dating service javascript validating imput from prompts