Refactoring register and profile view
Refactoring register and profile view