added validation to sidebar menu