fix checking data for user. in case of empty string.