Updated form model permission checks
Fixed: PHP error notice
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev