switch phone validation method