fixed validation for the custom actvity dialog
Added integration tests and fixed functional tests