phone validation as object