js validate method is invalid, removing for now