Changed JavaScript form Validation