check name params in registering