implemented login and registration pages.