Painlevé analysis and reducibility to the canonical form for the nonlinear generalized Schreodinger equation