Key validation and delete from temp_users table