add links and validation in model