Added some validators to models.