Re-order patches so that login patch gets applied first.