instead of adding id, added class for invalid fields