Added functionality for updating user types via the admin panel