CFY-577 now checking for key existence between running key related valid...

...ations. also, changed key perms logic to check for minimal perms