Make selectedUser optional

This fixes NON_ASSIGNABLE_MODEL_EXPRESSION error.