added validation to test inputs on create form