Validator class not working yet