change phone type and fixed a bug on edit user