Mobile user registration saves the user role

Also update to php files