Implement custom Shiro realm to use JPA. This allows us to use the user id as the principal