set username = null when user not registered yet