Fix of Parse error: syntax error - Error introduced in 2.5.21

Fix of **Parse error: syntax error, unexpected T_RETURN, expecting T_FUNCTION** which was introduced in version 2.5.21

Missing bracket after the if statement
if ($copy_email_activated == true && !empty($data['contact_email_copy']))

+ code style optimizations

Reported by user y021ahe in the forum: http://forum.joomla.org/viewtopic.php?f=622&t=848531