fixes line break replace for register page.