Let y=y(x) be the solution of the differential equaiton cosec2xdy+2dx=(1+ycos2x)cosec2xdx, with y(π4)=0. Then, the value of (y(0)+1)2 is equal to: