check name availability and register user