Created login verification functionality between client and server