merge the view of login and register
adjust the style of layout template