Add in logout support and fix the enable flag in UserDetails