fixed a bug with phone validation