Add some validation rules and set_defaults method to the Entry model