Fix login issue with Shiro