rename login
rename class
fix problems caused by renaming and refactor codes