Validate Input Text In Javascript Object Properties