fixed tenency username issue in registration