Add preference to enable login