User Login and Logout

implement user login and logout.
for #3