Added functionality to allow admin to change user type