A corrupt prison officer from Wigan, who formed a relationship with an inmate at HMP Forest Bank, has been jailed.