rearraging login to index