added login verification for submissions