Minor fix: Ensure to send a valid Content-Type
Check if a template requires a password or not