Undefined index: oldUsername issue fixed