Added validateModel