Tons of stuff

* Fixed jshint errors
* Added validation and restrictions username
* Added type for email
* Removed primaryKey position for username
* Added policies