action parameters validation in FriendController