history search and login logout

Add history search
Add top line for login and logout
TODO: finish regist