Added User permission Handling

- Improvement on user permission handling
- Removed some warnings