Added login next functionality