login register template

refactor