users_controller.rb: checked for valid user id before querying users in email list and their relationships