modifying backend to redirect to index after login/signup