implement login background task