Hacks to make it work with a different user model