changed register to display on main component and fixed return to login link