Add proper login support.