First version of validate

First version using jquery validate