Updated the security code to match the user's rank in the database.