Assign JavaScript in controllers instead of using tpl conditionals
Use ints instead of strings for boolean values in view templates
Improve change password flow error message
Fix registration form IDs in 79fcf5ce470a9fd620bd68b299724895a4dba361