Fixed the errors and added buttons for logout and account settings