add validates_lengths_from_database