updates to login functionality, good enough to move on to mongodb annotator incorporation