function logout, login, added.
post, working.