added error message if no patient selected when assigning surveys