Added login button functionality