form validation - changed how rules are seperated.