fix logic in controller and template for showing reg button
merge from master
Merge pull request #1021 from ORCID/hideRegButton

fix logic in controller and template for showing reg button