added logout functionality as well as updating userid/password