added guarding for guest users viewing new profiles