Use latest validator provided by wtforms

See bug #1343671. To avoid using depcrecated validator in wtforms
and quiet the warning, switch to the new validator.

Change-Id: I3cbd33ef02b7c6c2d9a42c9cc71e087ec2c82117
Closes-bug: #1343671
Merge "Use latest validator provided by wtforms"