Added AccessDeniedException
Implemented basic security