Click Events to switch between login and register