fix bugs

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