fixed login bug and added leaflet map