Add CSRF Security measures on login forms

just added the csrf middleware

as I requested in #39