added unique attribute to user model