Refactoring : Move of the form validator