Add validation using parsley

And also validate the post submission