Basic validation middleware for node or (client and server) using coffee