basic controller fixed up & contractor login & coupon logic