Added validation for title field. Added tests for event model.