Added validation and ability to add roles for users.