added login page and functionality