implement login command