add logout functionality, fix the user dropdown menu