move login functionality into separate support directory