Add CSRF Security measures on login forms

just added the csrf middleware