Fix bug with rank
Add profile_name uniqueness vaildation