JS3 Simple Validator - exercise - Week 2 - Refactoru