Adding separate check in logic for SMS and username.