combine login and register templates and views to same controller