Update login form mode.