validation

added validation to all windows