added validation to Setup