Removed permissions model and changed name validation