completed change from challenge id to slug as foreign key.
fixed tiny bug in challenge endpoint