Dirichlet boundary conditions for degenerate and singular nonlinear parabolic equations