Adding 'wrong' class to invalid inputs