Added JavaScript Validation