Update validators.py

I needed to fix this to prevent an error when creating a record with SQLFORM.