Improvements to PathElement security. 
Added UserService.