Move template rendering into the datamock file (dev mode only).
Fix login front-end validation.