can go back and forth between login and register