Changed created_at type.
Added validation.