stopped .valid and .invalid from returning duplicates