fixed error in database
got logout link to work properly