Fixed edit page and added a javascript active validator