Fixed bugs in index link after registration