deleted jquery validation framework, added validation function