input validation + /index to /