Some form functionality.
Fixed template dir.