fixed typo
added login and logout functionality