added validation, test algorithm form