[ticket/11838] Add the necessary form variables to register mode page

PHPBB3-11838