Thanks for your reply, I found the conversation you posted in an older forum post and I tried to follow it.
I put some code of my training procedure so far. The network is training but I have the feeling that the gradient does not get propagate through time.