Changed type to user_type