refactor + user register template