fix login bug, update martini to v1