Add valid app name check

Avoid to answer all the questions if the app name is not valid.