Linked with JS file on submit and added csrf_token.