Final version with option to search using username or profile id