feat(activity): check permissions when returning activity

SD-1124
use form $dirty instead of custom impl