Bug fix to remove duplicate posts and added login info