registation validation first part