Remove some useless files and change login function.