Fixed registration bug due to improper CSRF configuration