New function added - username gets concatenated with numbers when it is already used by another user