fixed login but still error with index