Added strict rules for handling user and friend id's. also added user_friendship controls