very experimental code for login verification