Added validation of the activity field and enabled migrations