SP, BSP joins hands in UP