re classing login and register pages
index