routes and registration controller fixes

Small changes to fix error.