Fix the shiro security service initialization and other errors in the controller