fix bugs

fix strange clear screen, add password input function, change coding
style.