rough draft of editor login. seems to work.