uses a link to change the action of the login form between login and register