Attributes were hardcoded in some part of the php script

Attributes for username and mail where hardcoded in some part of the code. As it is configured on the wordpress setting, I replaced the hardcoded attributes references by the one specified on the setting