added validation for invalid name and invalid ic format