added login page and authenticate