finish login action and repaire the path problem partly