added login page and checks