Validates profilename