added login and register pages