Added logout and register actions.