added check for user capability
added capability check
Merge pull request #11 from kjpro27/master

added conditionals for capabilties