Mongo queries added; validation with javascript functional; starting to rewrite validation in php.