Apply error states to text fields