added login and register to base template