FORUM-933 | Advanced search by user doesnt work in case username is an email