add login register template and view handling