Deleted unnecessary registration code and refined endpoint schema