Input validation added for project and sensor