Added login modal functionality