adds basic js validation for question title