Fixed a bug.

Fixed a bug which was causing the input element to stay pink even after
validation passes(copy-paste error).