added login page and related server-side changes