assign photo and comment to logged  user