you can move this up into teh if($isNewAccount) line 118 to make it better readable ;)