function to assign user role based on a field from usermeta

function to assign user role based on a field from usermeta