bug fixes in registration template