split loginview and registerview. add a layout view