added login verification