Updated login/register to redirect to Index page on success