Prevent addition of duplicate users and long URLs