Added checks so that there is an error screen
if the person doesn't exist in the database.