Added possibility for admin to change user type and user type is now returned correctly from authenticate