Email confirmation and redirection to sign in page seems to be working. I had registered more than one user before so the database was trying to match the email confirmation that I had just registered with one that I had registered a long time ago and obviously they wouldnt be the same. Also updated todo_all.