added login redirect and changed index to home view