added more validation to text fields

checks if the two names are identical