fixed updated failed redirect. now inserts proper user id into URL