Fixed use of getPathAlias().
Implemented more of the validateForm() functionality.