Added csrf token and fixed indentation.