add sign in and sign out features.

problem: the dropdown sign out test still not work, donot know why