Made changes to registration controller