fix user pk and add context processors