Refactor profile controller and registration controller. Rename.