fix issues with registration form (closes #386)