Fix js
Logic for situation when data not valid
View for situation when data is not valid