handled login buttons on home page and maps page