Added logout button and made changes to api calls