I keep legs straight and while lowering the bar keep it as close as possible to the shins. And don't ever round the back. That means sticking out your butt considerably (no homo). When going up it's really an "feel the muscle"- exercise. If I don't concentrate the lower back takes over immediately.
Best exercise for hams, no competition..leg curls are useless, imo.