Database validations and date fields

Set validations in models and added date selector to date fields.