pass admin variable into courses form for to solve redirect bug