Added login and register routes and fixed map