Changed form data from array to json hashmap, fixed validation test