fixed login redirect to index