fixed register auto login and updated index links