fix login code to work with rundeck 2.2.