$form['account']['name']=array('#type'=>'textfield','#title'=>t('Username'),'#default_value'=>$edit['name'],'#maxlength'=>55,'#description'=>t('Your full name or your preferred username: only letters, numbers and spaces are allowed.'),'#required'=>TRUE);
if(user_access('change own username')||user_access('administer users')){
$form['account']['name']=array('#type'=>'textfield','#title'=>t('Username'),'#default_value'=>$edit['name'],'#maxlength'=>55,'#description'=>t('Your full name or your preferred username: only letters, numbers and spaces are allowed.'),'#required'=>TRUE);
}
$form['account']['mail']=array('#type'=>'textfield','#title'=>t('E-mail address'),'#default_value'=>$edit['mail'],'#maxlength'=>55,'#description'=>t('Insert a valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.'),'#required'=>TRUE);
$form['account']['name']=array('#type'=>'textfield','#title'=>t('Username'),'#default_value'=>$edit['name'],'#maxlength'=>55,'#description'=>t('Your full name or your preferred username: only letters, numbers and spaces are allowed.'),'#required'=>TRUE);
if(user_access('change own username')||user_access('administer users')){
$form['account']['name']=array('#type'=>'textfield','#title'=>t('Username'),'#default_value'=>$edit['name'],'#maxlength'=>55,'#description'=>t('Your full name or your preferred username: only letters, numbers and spaces are allowed.'),'#required'=>TRUE);
}
$form['account']['mail']=array('#type'=>'textfield','#title'=>t('E-mail address'),'#default_value'=>$edit['mail'],'#maxlength'=>55,'#description'=>t('Insert a valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.'),'#required'=>TRUE);