Validation added for static directory.