Created login button functionality