added an if else to find sex of user and change name properly