Fixed the namespaces, routing and getting username