Repaired Validation and removed console.log