#22: Fixed typo and added AccessDeniedException if the user is not logged in.